﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Manager/SearchMP.master" CodeBehind="getEmployee.aspx.cs" Inherits="Agile_E.getEmployee" %>

<asp:Content ID="getEmployee" ContentPlaceHolderID="MPsearchmain" runat="server">
<div>
<h1>Employee Profile</h1>
<br />
<table>
<tr>
<td><asp:Label id="lblEmpID" runat="server" Text="Employee ID:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtEmpID" runat="server" ReadOnly="true" CssClass="ProfileTxtBox" ></asp:TextBox></td>
</tr>
<tr><td>
<asp:Label id="lbllname" runat="server" Text="Last Name:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtlname" runat="server" ReadOnly="true" CssClass="ProfileTxtBox" ></asp:TextBox></td>
</tr>
<tr>
<td style="padding-right:10px"><asp:Label id="lblmname" runat="server" Text="Middle Name:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtmname" runat="server" ReadOnly="true" CssClass="ProfileTxtBox" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblfname" runat="server" Text="First Name:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtfname" runat="server" ReadOnly="true" CssClass="ProfileTxtBox" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblPos" runat="server" Text="Position:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtPos" runat="server" ReadOnly="true" CssClass="ProfileTxtBox" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblSuper" runat="server" Text="Supervisor:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtSuper" runat="server" ReadOnly="true" CssClass="ProfileTxtBox" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblWphone" runat="server" Text="Work Phone:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtWphone" runat="server" ReadOnly="true" CssClass="ProfileTxtBox" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblcphone" runat="server" Text="Cell Phone:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtcphone" runat="server" ReadOnly="true" CssClass="ProfileTxtBox" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblhphone" runat="server" Text="Home Phone:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txthphone" runat="server" ReadOnly="true" CssClass="ProfileTxtBox" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lbldealer" runat="server" Text="Dealership:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtdealer" runat="server" ReadOnly="true"  CssClass="ProfileTxtBox" ></asp:TextBox>

<asp:DropDownList ID="ddldealerships" runat="server" AppendDataBoundItems="true" DataSourceID="srcddlDealer"
      DataTextField="Name" DataValueField="Name" Visible="false"  >
      <asp:ListItem Text="--SELECT--" Value="-1"></asp:ListItem>
      </asp:DropDownList>
      
<asp:SqlDataSource ID="srcddlDealer" runat="server" 
        ConnectionString="<%$ ConnectionStrings:TerraNetConnectionString %>" 
        SelectCommand="Select distinct(Name) from Dealerships"
        ProviderName="<%$ ConnectionStrings:TerraNetConnectionString.ProviderName %>"></asp:SqlDataSource>
</td>
</tr>
</table>
<br />
<asp:Label ID="lblsp" Text="Specialty:" runat="server" Font-Bold="true"></asp:Label><br />
<asp:TextBox ID="txtSpecial" runat="server" TextMode="MultiLine" Width="55%" Height="150px" Wrap="true" ReadOnly="true"></asp:TextBox>
<br /><br />
<asp:Button id="btnEdit" runat="server" Text="Edit" Width="55px" 
        onclick="btnEdit_Click" />
<asp:Button ID="btnSave" runat="server" Text="Save" Visible="false" 
        OnClientClick="return confirm('Save changes?');" onclick="btnSave_Click" />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="btnDelete" runat="server" Text="Delete" Width="55px" 
        onclick="btnDelete_Click" OnClientClick="return confirm('Are you sure you want to remove this Employee from the database?');" />
</div>
</asp:Content>